<?php
ini_set('default_charset', 'UTF-8'); // Para o charset das páginas e
error_reporting(1);
include("./php/connectabd.php");
include("./php/functions.php");

$pagina = $_GET['p'] != '' ? $_GET['p'] : 'home';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:fb="http://ogp.me/ns/fb#"> 
    <head>
        <title>Agilitá - Soluções em obra integrada</title>
        <meta name="" content="">
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
        <link  rel="stylesheet" type="text/css" href="css/fonts.css"/>
        <link  rel="stylesheet" type="text/css" href="css/main.css"/>
        <link  rel="stylesheet" type="text/css" href="css/jcarrousel.css"/>
        <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:600' rel='stylesheet' type='text/css'>
        <!--
        <script src="http://code.jquery.com/jquery-latest.js"></script>
        -->
        <script src="./js/jquery-1.8.3.min.js"></script>
        <script src="./js/jquery.jcarousel.js"></script>
        <script src="./js/validate/jquery.validate.js"></script>
        <script src="./js/validate/additional-methods.js"></script>
        <script src="./js/validate/messages_ptbr.js"></script>
        <script type="text/javascript">
            jQuery(document).ready(function() {
                jQuery('#news_js').jcarousel();	
            });
        </script>
    </head>
    <body>
        <!--------- FACEBOOK ------------------------->
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
        <!--------- facebook ------------------------->
        <div class="backgroundverde">
            <div id="geral">
                <!--Cabeçalho -->
                <div class="header">
                    <div class="logo">
                        <a href="./">
                            <img src="./img/logo_agilita.png" />
                        </a>
                    </div>
                    <div class="legend">Arqdecor - Projetos - Execução</div>
                    <div class="social">
                       <div class="posis">
					    <div class="fb-like" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true" data-font="arial" data-colorscheme="dark"></div>
                       <a href="https://twitter.com/share" class="twitter-share-button" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
					   </div>
					   
					    <div class="arearestrita">
                            <a href="http://www.agilita.jointecnologia.com.br" target="_blank">	Area Restrita</a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="menu">
                    <ul>
                        <li><a class="<?php echo $pagina=='empresa' ? 'marcado' : ''  ?>" href="?p=empresa">Empresa</a></li>
                        <li><a class="<?php echo $pagina=='servicos' ? 'marcado' : ''  ?>" href="?p=servicos">Serviços</a></li>
                        <li><a class="<?php echo $pagina=='novidades' ? 'marcado' : ''  ?>" href="?p=novidades">Novidades</a></li>
                        <li><a class="<?php echo $pagina=='portfolio' ? 'marcado' : ''  ?>" href="?p=portfolio">Portfolio</a></li>
                        <li><a class="<?php echo $pagina=='contato' ? 'marcado' : ''  ?>" href="?p=contato">Contato</a></li>
                        <li><a class="<?php echo $pagina=='orcamento' ? 'marcado' : ''  ?>" href="?p=orcamento">Orçamento</a></li>
                        <li>
                            <div class="telefone">
                                <span style="font-size: 14px;">(51)</span> 3361.6322 - <span style="font-family: 'source_sans_prolight'">Porto Alegre</span>
                            </div>
                        </li>
                    </ul>			
                </div>
                <div class="telefone"></div>
                <div class="clear"></div><!--End -->
                <!--Conteudo -->
                <div class="content <?php echo $pagina == 'home' ? '' : 'contentbgInternas'; ?>">
                    <?php include $pagina . '.php'; ?>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="backgroundBege <?php echo $pagina != 'home' ? '' : 'rodapeHome'; ?>">
            <div class="footer">
                <div class="menuFooter">
                    <div class="footer_title">Menu</div>
                    <ul class="menufooterleft">
                        <li><a href="./?p=empresa">Empresa</a></li>
                        <li><a href="./?p=servicos">Serviços</a></li>
                        <li><a href="./?p=novidades">Novidades</a></li>
                    </ul>
                    <ul class="menufooterright">
                        <li><a href="./?p=portfolio">Portfolio</a></li>
                        <li><a href="./?p=contato">Contato</a></li>
                        <li><a href="./?p=orcamento">Orçamento</a></li>
                    </ul>
                </div>
                <div class="atendimento">
                    Atendimento
                    <div class="horario">De segunda a sexta-feira, entre as<span class="hora"> 8h30</span>
                        e <span class="hora">19h</span><br/>
                        Fone: <b>(51)</b> <span class="hora"> 3361.6322</span> / <b>(51)</b><span class="hora">8121-3692</span>
                        <br/>
                        Av. Benjamin Constant 904, Sl. 504<br/>
                        São João - Porto Alegre - RS	
                    </div>
                </div>
                <div class="socialFooter">
                    Redes Sociais
                    <div class="face">Facebook</div>
                    <div class="twitter">Twitter</div>
                </div>
                <div class="clear"></div>
                <div class="copyright">
                    © Copyright 2013, Agilitá Soluções em obra integrada.
                </div>
                <div class="join">
                    <a href="http://www.jointecnologia.com.br">
                        <img src="img/join.png" alt=""/>
                    </a>
                </div>
            </div>
        </div>

    </body>
</html>